# Contributor: Andrew Hills <ahills@ednos.net>
# Maintainer: Andrew Hills <ahills@ednos.net>
pkgname=imapfilter
pkgver=2.7.5
pkgrel=0
pkgdesc="Lua-based filtering for IMAP mailboxes"
url="https://github.com/lefcha/imapfilter"
arch="all"
license="MIT"
makedepends="$depends_dev lua-dev openssl-dev pcre2-dev libc-dev"
options="!check" # no testsuite
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/lefcha/imapfilter/archive/v$pkgver.tar.gz"

build() {
	make PREFIX=/usr all
}

package() {
	make \
		PREFIX=/usr \
		MANDIR=/usr/share/man \
		DESTDIR="$pkgdir" \
		install
}

sha512sums="a64747d745ecd5a2f61d486cd8fec1bceeb97ce459ec57454311a960dbfce526c15e8bddeb16860b8efd9710de93845adec61ec892355a0bef7bddc4517e1442  imapfilter-2.7.5.tar.gz"
